package edu.pku.sei.transformation.editor.controller.policies;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ConnectionEditPolicy;
import org.eclipse.gef.requests.GroupRequest;

import edu.pku.sei.modeler.model.structure.MetaLink;
import edu.pku.sei.transformation.editor.controller.commands.CommandFactory;

public class TransformationtConnetionEditPolicy extends ConnectionEditPolicy {

	@Override
	protected Command getDeleteCommand(GroupRequest request) {
		MetaLink connection = (MetaLink) getHost().getModel();
		Command cmd = CommandFactory.getDeleteCommand(connection);
		return cmd;
	}

}
